\doxysection{Game类 参考}
\label{class_game}\index{Game@{Game}}


{\ttfamily \#include $<$Game.\+h$>$}



Game 的协作图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{class_game__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\textbf{ Game} ()
\item 
\textbf{ $\sim$\+Game} ()
\item 
void \textbf{ Player\+Init} ()
\begin{DoxyCompactList}\small\item\em 玩家属性初始化 \end{DoxyCompactList}\item 
void \textbf{ Stack\+Init} ()
\begin{DoxyCompactList}\small\item\em 总牌堆初始化 \end{DoxyCompactList}\item 
void \textbf{ Touch\+Card} ()
\begin{DoxyCompactList}\small\item\em 摸牌 \end{DoxyCompactList}\item 
void \textbf{ start} (int beginer)
\begin{DoxyCompactList}\small\item\em 以beginer为庄家开始游戏 \end{DoxyCompactList}\item 
bool \textbf{ Is\+Finished} ()
\begin{DoxyCompactList}\small\item\em 判断游戏是否结束 \end{DoxyCompactList}\item 
void \textbf{ Print\+Random\+Stack} ()
\begin{DoxyCompactList}\small\item\em 输出牌堆内容 \end{DoxyCompactList}\item 
void \textbf{ Random\+Virus\+Transmission} ()
\begin{DoxyCompactList}\small\item\em 相对独立于打牌的直接接触途径，本函数模拟理想情况下空气传播病毒的过程， \end{DoxyCompactList}\item 
void \textbf{ Deck\+Shuffle} (unsigned seed)
\begin{DoxyCompactList}\small\item\em 考虑洗牌过程中，病毒在牌与牌之间的传播 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public 属性}
\begin{DoxyCompactItemize}
\item 
std\+::vector$<$ \textbf{ People} $\ast$ $>$ \textbf{ Reaction\+Group}
\item 
std\+::vector$<$ \textbf{ Mahjong} $>$ \textbf{ Random\+Stack} = std\+::vector$<$\textbf{ Mahjong}$>$(136)
\begin{DoxyCompactList}\small\item\em 总牌堆 \end{DoxyCompactList}\item 
std\+::vector$<$ std\+::vector$<$ bool $>$ $>$ \textbf{ Touchface} = std\+::vector$<$std\+::vector$<$bool$>$$>$(4, std\+::vector$<$bool$>$(136, 0))
\item 
std\+::vector$<$ \textbf{ Mahjong} $>$ \textbf{ Other\+Stack}
\begin{DoxyCompactList}\small\item\em 被打出的牌的牌堆 \end{DoxyCompactList}\item 
int \textbf{ index} = 0
\item 
\textbf{ People} $\ast$ \textbf{ Playergroup} [4]
\item 
\textbf{ People} $\ast$ \textbf{ Current}
\item 
float \textbf{ Virus\+Load\+Of\+Air}
\begin{DoxyCompactList}\small\item\em 空气中的病毒含量 \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{构造及析构函数说明}
\mbox{\label{class_game_ad59df6562a58a614fda24622d3715b65}} 
\index{Game@{Game}!Game@{Game}}
\index{Game@{Game}!Game@{Game}}
\doxysubsubsection{Game()}
{\footnotesize\ttfamily Game\+::\+Game (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_game_ad59df6562a58a614fda24622d3715b65_cgraph}
\end{center}
\end{figure}
\mbox{\label{class_game_ae3d112ca6e0e55150d2fdbc704474530}} 
\index{Game@{Game}!````~Game@{$\sim$Game}}
\index{````~Game@{$\sim$Game}!Game@{Game}}
\doxysubsubsection{$\sim$Game()}
{\footnotesize\ttfamily Game\+::$\sim$\+Game (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



\doxysubsection{成员函数说明}
\mbox{\label{class_game_a775f4f1eecec6dc290af913f18dcd253}} 
\index{Game@{Game}!DeckShuffle@{DeckShuffle}}
\index{DeckShuffle@{DeckShuffle}!Game@{Game}}
\doxysubsubsection{DeckShuffle()}
{\footnotesize\ttfamily void Game\+::\+Deck\+Shuffle (\begin{DoxyParamCaption}\item[{unsigned}]{seed }\end{DoxyParamCaption})}



考虑洗牌过程中，病毒在牌与牌之间的传播 

s 这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_game_a775f4f1eecec6dc290af913f18dcd253_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_game_ae597b45d0add94ae2e16aadc99cdeabe}} 
\index{Game@{Game}!IsFinished@{IsFinished}}
\index{IsFinished@{IsFinished}!Game@{Game}}
\doxysubsubsection{IsFinished()}
{\footnotesize\ttfamily bool Game\+::\+Is\+Finished (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



判断游戏是否结束 

牌局是否结束的判定函数 

\begin{DoxyReturn}{返回}
牌局结束返回true，牌局未结束返回false
\end{DoxyReturn}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_game_ae597b45d0add94ae2e16aadc99cdeabe_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_game_a9dacf7651de226d502a807213d1752cd}} 
\index{Game@{Game}!PlayerInit@{PlayerInit}}
\index{PlayerInit@{PlayerInit}!Game@{Game}}
\doxysubsubsection{PlayerInit()}
{\footnotesize\ttfamily void Game\+::\+Player\+Init (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



玩家属性初始化 

函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=295pt]{class_game_a9dacf7651de226d502a807213d1752cd_cgraph}
\end{center}
\end{figure}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=280pt]{class_game_a9dacf7651de226d502a807213d1752cd_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_game_a9241395aba45b19f98cb96420b4c1c41}} 
\index{Game@{Game}!PrintRandomStack@{PrintRandomStack}}
\index{PrintRandomStack@{PrintRandomStack}!Game@{Game}}
\doxysubsubsection{PrintRandomStack()}
{\footnotesize\ttfamily void Game\+::\+Print\+Random\+Stack (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



输出牌堆内容 

\texorpdfstring{$<$}{<}输出花色

\texorpdfstring{$<$}{<}输出该麻将牌携带病毒含量\mbox{\label{class_game_a288848b555bb8f2b7b64dc3c6b8bb8b5}} 
\index{Game@{Game}!RandomVirusTransmission@{RandomVirusTransmission}}
\index{RandomVirusTransmission@{RandomVirusTransmission}!Game@{Game}}
\doxysubsubsection{RandomVirusTransmission()}
{\footnotesize\ttfamily void Game\+::\+Random\+Virus\+Transmission (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



相对独立于打牌的直接接触途径，本函数模拟理想情况下空气传播病毒的过程， 

十分理想的，假设每过random局麻将， 病源使空气中的病毒含量增加， 考虑到麻将室的地方狭小， 做出空气中的病毒对每一个玩家感染概率相同的假设 函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_game_a288848b555bb8f2b7b64dc3c6b8bb8b5_cgraph}
\end{center}
\end{figure}
\mbox{\label{class_game_a40a28958af1dd0e5cb60e0cb88ac5862}} 
\index{Game@{Game}!StackInit@{StackInit}}
\index{StackInit@{StackInit}!Game@{Game}}
\doxysubsubsection{StackInit()}
{\footnotesize\ttfamily void Game\+::\+Stack\+Init (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



总牌堆初始化 

这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=278pt]{class_game_a40a28958af1dd0e5cb60e0cb88ac5862_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_game_a785fdf605191da3aea64b8746dca7fa8}} 
\index{Game@{Game}!start@{start}}
\index{start@{start}!Game@{Game}}
\doxysubsubsection{start()}
{\footnotesize\ttfamily void Game\+::start (\begin{DoxyParamCaption}\item[{int}]{beginer }\end{DoxyParamCaption})}



以beginer为庄家开始游戏 

函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_game_a785fdf605191da3aea64b8746dca7fa8_cgraph}
\end{center}
\end{figure}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=222pt]{class_game_a785fdf605191da3aea64b8746dca7fa8_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_game_a428b86d8c6819c7dd6473944150badf2}} 
\index{Game@{Game}!TouchCard@{TouchCard}}
\index{TouchCard@{TouchCard}!Game@{Game}}
\doxysubsubsection{TouchCard()}
{\footnotesize\ttfamily void Game\+::\+Touch\+Card (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



摸牌 

函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_game_a428b86d8c6819c7dd6473944150badf2_cgraph}
\end{center}
\end{figure}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_game_a428b86d8c6819c7dd6473944150badf2_icgraph}
\end{center}
\end{figure}


\doxysubsection{类成员变量说明}
\mbox{\label{class_game_a358405ad6709906168354068ef2ce74c}} 
\index{Game@{Game}!Current@{Current}}
\index{Current@{Current}!Game@{Game}}
\doxysubsubsection{Current}
{\footnotesize\ttfamily \textbf{ People}$\ast$ Game\+::\+Current}

\mbox{\label{class_game_a60609240114fc1f1e7b2dfb7d1c9d75a}} 
\index{Game@{Game}!index@{index}}
\index{index@{index}!Game@{Game}}
\doxysubsubsection{index}
{\footnotesize\ttfamily int Game\+::index = 0}

\mbox{\label{class_game_acceeeceb462f412367b88a75d5ea350c}} 
\index{Game@{Game}!OtherStack@{OtherStack}}
\index{OtherStack@{OtherStack}!Game@{Game}}
\doxysubsubsection{OtherStack}
{\footnotesize\ttfamily std\+::vector$<$\textbf{ Mahjong}$>$ Game\+::\+Other\+Stack}



被打出的牌的牌堆 

\mbox{\label{class_game_a33320bf97e8392d56c36ccdd5b159318}} 
\index{Game@{Game}!Playergroup@{Playergroup}}
\index{Playergroup@{Playergroup}!Game@{Game}}
\doxysubsubsection{Playergroup}
{\footnotesize\ttfamily \textbf{ People}$\ast$ Game\+::\+Playergroup[4]}

\mbox{\label{class_game_a5807f15aad13ef1be585e264111b5443}} 
\index{Game@{Game}!RandomStack@{RandomStack}}
\index{RandomStack@{RandomStack}!Game@{Game}}
\doxysubsubsection{RandomStack}
{\footnotesize\ttfamily std\+::vector$<$\textbf{ Mahjong}$>$ Game\+::\+Random\+Stack = std\+::vector$<$\textbf{ Mahjong}$>$(136)}



总牌堆 

\mbox{\label{class_game_a23c28c896396d2ad6e9c3fad26e4f1d2}} 
\index{Game@{Game}!ReactionGroup@{ReactionGroup}}
\index{ReactionGroup@{ReactionGroup}!Game@{Game}}
\doxysubsubsection{ReactionGroup}
{\footnotesize\ttfamily std\+::vector$<$\textbf{ People}$\ast$$>$ Game\+::\+Reaction\+Group}

\mbox{\label{class_game_acc98719d420c8cdcb4ffc1a2bf837bbf}} 
\index{Game@{Game}!Touchface@{Touchface}}
\index{Touchface@{Touchface}!Game@{Game}}
\doxysubsubsection{Touchface}
{\footnotesize\ttfamily std\+::vector$<$std\+::vector$<$bool$>$ $>$ Game\+::\+Touchface = std\+::vector$<$std\+::vector$<$bool$>$$>$(4, std\+::vector$<$bool$>$(136, 0))}

\mbox{\label{class_game_a73417536310c6f341c7ef86a0c77896b}} 
\index{Game@{Game}!VirusLoadOfAir@{VirusLoadOfAir}}
\index{VirusLoadOfAir@{VirusLoadOfAir}!Game@{Game}}
\doxysubsubsection{VirusLoadOfAir}
{\footnotesize\ttfamily float Game\+::\+Virus\+Load\+Of\+Air}



空气中的病毒含量 



该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
D\+:/\+Data/gitee/\+Mahjong01/\textbf{ Game.\+h}\item 
D\+:/\+Data/gitee/\+Mahjong01/\textbf{ Game.\+cpp}\end{DoxyCompactItemize}
